package com.zsrt.java.day20170113.lh.daily.ch04;

public class SwimCar {
	
	private CommonCar car;
	

	public SwimCar(CommonCar car) {
		this.car = car;
	}
	
	public void drive(){
		//1.可以在陆地上面开
		car.drive();
		//2可以在水中游
		swim();
	}
	
	public void swim(){
		System.out.println("在水上开");
	}
	
	

}
